-
-
Notifications
You must be signed in to change notification settings - Fork 35
Add esbuild transpiler #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
9f56eb8 to
e23be68
Compare
| **kwargs | ||
| ) | ||
|
|
||
| esbuild_transpiler = rule( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets create a macro here similar to the swc one to hide things like js_outs etc: https://github.com/aspect-build/rules_swc/blob/785f94c2bf39d3ddac4cbfd9d7786f6067209f77/swc/defs.bzl
| if ctx.outputs.map_outs: | ||
| action_outputs.append(ctx.outputs.map_outs[i]) | ||
|
|
||
| ctx.actions.run( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add a mnemonic and progress message, see swc
|
I think we need things such as:
|
|
There has not been much activity on this PR. For now, we will convert it to a draft. Please mark as ready for review when you are ready to proceed. |
|
I think this was fixed in #98 |
|
@alexeagle I think there's additional glue needed to plug esbuild into |
|
I see, would you like to push this one forward then? |
|
Yeah, I have the macro bit Jason mentioned done now, I'll polish it a bit and submit |
|
sorry @dzbarsky looks like we made it "possible enough" and probably we'd try OXC if we made a fresh pass at other transpilers |
No worries. The reality is if anyone wants to actually use esbuild they need to apply patches to prevent sandbox escapes. The plugin approach is untenably slow. It matters more for bundling than transpiring but may as well have a single binary. Anyway my point is there are other challenges to doing this correctly so a missing macro is not the blocker for someone who wants to pursue it, they will need to dig in. |
No description provided.